package com.sxbbc.common.core.entity.jz;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 用户意见表
 * </p>
 *
 * @author leehao
 * @since 2019-05-07
 */
@TableName("opinion_info")
public class OpinionInfo extends Model<OpinionInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 意见内容
     */
    private String content;

    /**
     * 1未处理  2已处理
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 处理时间
     */
    private Date endTime;

    /**
     * 用户昵称
     */
    @TableField(exist = false)
    private String cname;

    /**
     * 用户联系方式
     */
    @TableField(exist = false)
    private String cphone;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCphone() {
        return cphone;
    }

    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OpinionInfo{" +
        "id=" + id +
        ", cid=" + cid +
        ", content=" + content +
        ", status=" + status +
        ", createtime=" + createtime +
        ", endTime=" + endTime +
        "}";
    }
}
